# -*- coding: utf-8 -*-
import requests


## 搜索的Timeline信息
class Timeline(object):
    def __init__(self, mid, content, imgs, author, time, url):
        self.mid = mid
        self.content = content
        self.imgs = imgs
        self.author = author
        self.time = time
        self.url = url

    def to_json(self):
        return {
            'mid': self.mid,
            'content': self.content,
            'imgs': self.imgs,
            'author': self.author,
            'time': self.time,
            'url': self.url
        }


## 爬取到的目标用户
class WeiboFans(object):
    def __init__(self, uid, nick, avatar, isverfiy, url):
        self.uid = uid
        self.nickname = nick
        self.avatar = avatar
        self.isverfiy = isverfiy
        self.url = url

    def to_json(self):
        return {
            'uid': self.uid,
            'nickname': self.nickname,
            'avatar': self.avatar,
            'isverfiy': self.isverfiy,
            'url': self.url
        }
